import request from "@/utils/request";
//多条件分页查询线路信息
export function getLineByPage(lineDto) {
    return request({
        url: "/pd-base/line/getLineByPage",
        method: "post",
        data: lineDto
    });
}
//添加线路信息
export function addLine(lineBean){
    return request({
        url: "/pd-base/line/addLine",
        method: "post",
        data: lineBean
    });
}
//修改线路信息
export function updateLine(lineBean){
    return request({
        url: "/pd-base/line/updateLine",
        method: "post",
        data: lineBean
    });
}
//删除线路信息
export function deleteLine(lineBean){
    return request({
        url: "/pd-base/line/deleteLine",
        method: "post",
        data: lineBean
    })
}
//根据线路编号查询线路信息
export function getLineById(id){
  return request({
    url: `/pd-base/line/getLineById/${ id }`,
    method: "get",
    params: { id }
  })
}
